package com.aaa.phone.controller.carinformationcontroller;

/**
 * @Description: 主要显示用户的车辆信息
 * @Author: 陈阳
 * @CreateDate: 2018/12/19$ 19:31$
 */

import com.aaa.entity.BackCarMessage;
import com.aaa.phone.service.carinformationservice.CarInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//跨域注解
@CrossOrigin
@Controller
@RequestMapping("/carInformation")
public class CarInformation {

    @Autowired
    private CarInformationService service;

    /**
     * 获取用户车辆信息
     */
    @RequestMapping("/getCarIn")
    @ResponseBody
    public BackCarMessage getCarIn(String telephone) {
        return service.getCarInformation(telephone);
    }


}
